{extend name='public/content'}

{block name="title"}
	首页
{/block}
{block name="body"}

<div class="layui-container">
 	<div id="qrcode" style="width:500px; height:500px; margin-top:15px;"></div>
</div>

</br>
{/block}
{block name="script"}
 	<script type="text/javascript">
 		require(['jquery','qrcode'], function () {
			var qrcode = new QRCode(document.getElementById("qrcode"), {
					width : 400,
					height : 400
				});
				function makeCode () {
					qrcode.makeCode("{$prepayid}");
				}
				makeCode();
 		})
 	</script>
{/block}

{block name="style"}
 <style type="text/css">

 </style>
{/block}
